
data_string = "nonce=3VA7Q1S625N5oHAu&p=2&timestamp=1693882434"


import json

data_dict = {item.split("=")[0]: item.split("=")[1] for item in data_string.split("&")}
data_string = json.dumps(data_dict, indent=4)
print(data_string)
